package com.gopay.common.domain.riskcontrol;

import com.gopay.common.domain.BaseEntity;

import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;

/**
 * Created by Lenovo-songfengli on 2016/9/19.
 */
@Entity
@Table(name = "RC_CORP_RATING_SNAPSHOT")
public class RcCorpRatingSnapshot extends BaseEntity {

    /** 主键 */
    @Id
    @SequenceGenerator(name = "RC_CORP_RATING_SNAPSHOT_SEQ_GENERATOR", sequenceName = "RC_CORP_RATING_SNAPSHOT_SEQ", allocationSize = 1)
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "RC_CORP_RATING_SNAPSHOT_SEQ_GENERATOR")
    @Column(name = "ID")
    private Long id;
    /** 客户id */
    @Column(name="CUST_ID", length=10)
    private String custId;
    /** 顺序 */
    @Column(name="RC_ORDER")
    private BigDecimal rcOrder;
    /** 评分要素 */
    @Column(name="RATING_FACTORS", length=30)
    private String ratingFactors;
    /** 具体参数 */
    @Column(name="SPECIFIC_PARAMETERS", length=30)
    private String specificParameters;
    /** 分值 */
    @Column(name="SCORE")
    private BigDecimal score;
    /** 创建时间 */
    @Column(name="CREATED_TS")
    private Date createdTs;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCustId() {
        return custId;
    }

    public void setCustId(String custId) {
        this.custId = custId;
    }

    public BigDecimal getRcOrder() {
        return rcOrder;
    }

    public void setRcOrder(BigDecimal rcOrder) {
        this.rcOrder = rcOrder;
    }

    public String getRatingFactors() {
        return ratingFactors;
    }

    public void setRatingFactors(String ratingFactors) {
        this.ratingFactors = ratingFactors;
    }

    public String getSpecificParameters() {
        return specificParameters;
    }

    public void setSpecificParameters(String specificParameters) {
        this.specificParameters = specificParameters;
    }

    public BigDecimal getScore() {
        return score;
    }

    public void setScore(BigDecimal score) {
        this.score = score;
    }

    public Date getCreatedTs() {
        return createdTs;
    }

    public void setCreatedTs(Date createdTs) {
        this.createdTs = createdTs;
    }
}
